package com.example.registration.pojo;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @ClassName
 * @Description TODO
 * @Author YangWenJian
 * @Date
 * @Version 1.0
 **/
public class Indent {
    private Integer indent_id;//订单id
    private String indent_number;//订单编号
    private String user_name;//患者姓名
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date see_time;//就诊日期
    private String hospital_name;//医院姓名
    private String administrative_name;//小科室姓名
    private String doctor_name;//医生姓名
    private Integer pay_status_id;//支付状态id
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date order_time;//下单时间
    private String remove_reason;//取消订单原因
    private String channels;//预约渠道
    private String registration;//预约类型
    private Integer paytype_id;//支付类型id
    private String money;//费用金额
    private Integer user_id;//用户id
    private Integer doctor_id;//医生id
    private Integer hospital_id;//医院id


    //添加映射
    private Doctor doctor;
    private Hospital hospital;
    private User user;

    public Doctor getDoctor() {
        return doctor;
    }

    public void setDoctor(Doctor doctor) {
        this.doctor = doctor;
    }

    public Hospital getHospital() {
        return hospital;
    }

    public void setHospital(Hospital hospital) {
        this.hospital = hospital;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Integer getIndent_id() {
        return indent_id;
    }

    public void setIndent_id(Integer indent_id) {
        this.indent_id = indent_id;
    }

    public String getIndent_number() {
        return indent_number;
    }

    public void setIndent_number(String indent_number) {
        this.indent_number = indent_number;
    }

    public String getUser_name() {
        return user_name;
    }

    public void setUser_name(String user_name) {
        this.user_name = user_name;
    }

    public Date getSee_time() {
        return see_time;
    }

    public void setSee_time(Date see_time) {
        this.see_time = see_time;
    }

    public String getHospital_name() {
        return hospital_name;
    }

    public void setHospital_name(String hospital_name) {
        this.hospital_name = hospital_name;
    }

    public String getAdministrative_name() {
        return administrative_name;
    }

    public void setAdministrative_name(String administrative_name) {
        this.administrative_name = administrative_name;
    }

    public String getDoctor_name() {
        return doctor_name;
    }

    public void setDoctor_name(String doctor_name) {
        this.doctor_name = doctor_name;
    }

    public Integer getPay_status_id() {
        return pay_status_id;
    }

    public void setPay_status_id(Integer pay_status_id) {
        this.pay_status_id = pay_status_id;
    }

    public Date getOrder_time() {
        return order_time;
    }

    public void setOrder_time(Date order_time) {
        this.order_time = order_time;
    }

    public String getRemove_reason() {
        return remove_reason;
    }

    public void setRemove_reason(String remove_reason) {
        this.remove_reason = remove_reason;
    }

    public String getChannels() {
        return channels;
    }

    public void setChannels(String channels) {
        this.channels = channels;
    }

    public String getRegistration() {
        return registration;
    }

    public void setRegistration(String registration) {
        this.registration = registration;
    }

    public Integer getPaytype_id() {
        return paytype_id;
    }

    public void setPaytype_id(Integer paytype_id) {
        this.paytype_id = paytype_id;
    }

    public String getMoney() {
        return money;
    }

    public void setMoney(String money) {
        this.money = money;
    }

    public Integer getUser_id() {
        return user_id;
    }

    public void setUser_id(Integer user_id) {
        this.user_id = user_id;
    }

    public Integer getDoctor_id() {
        return doctor_id;
    }

    public void setDoctor_id(Integer doctor_id) {
        this.doctor_id = doctor_id;
    }

    public Integer getHospital_id() {
        return hospital_id;
    }

    public void setHospital_id(Integer hospital_id) {
        this.hospital_id = hospital_id;
    }

    @Override
    public String toString() {
        return "Indent{" +
                "indent_id=" + indent_id +
                ", indent_number='" + indent_number + '\'' +
                ", user_name='" + user_name + '\'' +
                ", see_time=" + see_time +
                ", hospital_name='" + hospital_name + '\'' +
                ", administrative_name='" + administrative_name + '\'' +
                ", doctor_name='" + doctor_name + '\'' +
                ", pay_status_id=" + pay_status_id +
                ", order_time=" + order_time +
                ", remove_reason='" + remove_reason + '\'' +
                ", channels='" + channels + '\'' +
                ", registration='" + registration + '\'' +
                ", paytype_id=" + paytype_id +
                ", money='" + money + '\'' +
                ", user_id=" + user_id +
                ", doctor=" + doctor +
                ", hospital=" + hospital +
                ", user=" + user +
                '}';
    }
}
